package cn.gl.org.domain;

import cn.gl.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：部门
 */
@Data
public class Department extends BaseDomain {
    //部门编号
    private String sn;
    //部门名称
    private String name;
    //部门路径
    private String dirPath;
    //状态 1 启动 0禁用
    private Integer state;
    //部门经理id
    private Long manager_id;
    //上级部门id
    private Long parent_id;
    //店铺id
    private Long shop_id;
    //保存上级部门经理的信息
    private Employee manager;
    //保存上级部门的信息
    private Department parent;
    //无限级数children属性
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
